/* $Id: Entrez2_id_list.hpp 645344 2022-02-14 17:11:53Z grichenk $
 * ===========================================================================
 *
 *                            PUBLIC DOMAIN NOTICE
 *               National Center for Biotechnology Information
 *
 *  This software/database is a "United States Government Work" under the
 *  terms of the United States Copyright Act.  It was written as part of
 *  the author's official duties as a United States Government employee and
 *  thus cannot be copyrighted.  This software/database is freely available
 *  to the public for use. The National Library of Medicine and the U.S.
 *  Government have not placed any restriction on its use or reproduction.
 *
 *  Although all reasonable efforts have been taken to ensure the accuracy
 *  and reliability of the software and data, the NLM and the U.S.
 *  Government do not and cannot warrant the performance or results that
 *  may be obtained by using this software or data. The NLM and the U.S.
 *  Government disclaim all warranties, express or implied, including
 *  warranties of performance, merchantability or fitness for any particular
 *  purpose.
 *
 *  Please cite the author in any work or product based on this material.
 *
 * ===========================================================================
 *
 * Author:  .......
 *
 * File Description:
 *   .......
 *
 * Remark:
 *   This code was originally generated by application DATATOOL
 *   using specifications from the ASN data definition file
 *   'entrez2.asn'.
 *
 */

#ifndef OBJECTS_ENTREZ2_ENTREZ2_ID_LIST_HPP
#define OBJECTS_ENTREZ2_ENTREZ2_ID_LIST_HPP

#include <util/resize_iter.hpp>

// generated includes
#include <objects/entrez2/Entrez2_id_list_.hpp>

// generated classes

BEGIN_NCBI_SCOPE

BEGIN_objects_SCOPE // namespace ncbi::objects::

class NCBI_ENTREZ2_EXPORT CEntrez2_id_list : public CEntrez2_id_list_Base
{
    typedef CEntrez2_id_list_Base Tparent;
public:
    typedef TIntId TUid;
    typedef CConstResizingIterator<TUids, TUid> TConstUidIterator;
    typedef CResizingIterator<TUids, TUid>      TUidIterator;

    // constructor
    CEntrez2_id_list(void);
    // destructor
    ~CEntrez2_id_list(void);

    // so apps don't have to (de)marshal the list
    TUidIterator GetUidIterator();
    TConstUidIterator GetConstUidIterator() const;

    // resize the container to hold a certain number of UIDs
    void Resize(size_t size);

    // set the container to a set of integer UIDs
    void AssignUids(const vector<TUid>& uids);


    NCBI_DEPRECATED
    static const size_t sm_UidSize; // bytes

    size_t GetUidSizeBits(void) const;
    size_t GetUidSizeBytes(void) const;

    // Compress UIDs to 32-bit integers if possible.
    void PackUids(void);

private:
    void x_SetNativeUidSize(void);

    // Prohibit copy constructor and assignment operator
    CEntrez2_id_list(const CEntrez2_id_list& value);
    CEntrez2_id_list& operator=(const CEntrez2_id_list& value);
};



/////////////////// CEntrez2_id_list inline methods

// constructor
inline
CEntrez2_id_list::CEntrez2_id_list(void)
{
}


/////////////////// end of CEntrez2_id_list inline methods


END_objects_SCOPE // namespace ncbi::objects::

END_NCBI_SCOPE


#endif // OBJECTS_ENTREZ2_ENTREZ2_ID_LIST_HPP
/* Original file checksum: lines: 90, chars: 2507, CRC32: 92bb06a4 */
